package com.cj.bus;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.cj.bus.common.utils.SpringContextUtil;

import lombok.extern.slf4j.Slf4j;

@ComponentScan(basePackages = {"com.cj.bus"})
@SpringBootApplication
@EnableScheduling
@Slf4j
public class BusApplication
{
    public static void main(String[] args) {

        SpringApplication.run(BusApplication.class, args);
        log.info("BusApplication Success!!");
        log.info("==========================当前环境:{} ==========================", SpringContextUtil.getActiveProfile());
    }
}
